package cn.cdnsu.org.mapper;

import cn.cdnsu.base.mapper.BaseMapper;
import cn.cdnsu.base.util.PageInfo;
import cn.cdnsu.org.domain.Department;
import cn.cdnsu.org.domain.Employee;
import cn.cdnsu.org.dto.EmployeeDTO;
import cn.cdnsu.org.query.DepartmentQuery;
import cn.cdnsu.org.query.EmployeeQuery;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface EmployeeMapper extends BaseMapper<Employee> {

    Employee selectOneById(Long id);

    Employee selectByName(String name);

    List<Long> selectByEmployeeId(Long id);

    void deleteByEmployeeId(Long id);

    void inserByEmployeeId(EmployeeDTO employeeDTO);

    List<String> queryPermissionByUserId(Long id);
}
